<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" th:replace="layout/admin">
<div th:fragment="home-content">
    <!-- 内容区域 -->
    <div class="content-wrapper">

        <!-- 内容头部 -->
        <section class="content-header">
            <h1>文章管理<small>文章修改</small></h1>
            <ol class="breadcrumb">
                <li><a href="/admin"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li><a href="/admin/article/list">所有文章</a></li>
                <li class="active">文章修改</li>
            </ol>
        </section>
        <!-- 内容头部 /-->

        <!-- 正文区域 -->
        <section class="content">

            <div class="row">
                <div class="col-md-3">
                    <a href="#" class="btn btn-primary btn-block margin-bottom">所有文章</a>

                    <div class="box box-solid">
                        <div class="box-header with-border">
                            <h3 class="box-title">选项</h3>

                            <div class="box-tools">
                                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <div class="box-body no-padding">
                            <ul class="nav nav-pills nav-stacked">
                                <li><a href="/admin/article/list"><i class="fa fa-inbox"></i> 所有文章
                                    <span class="label label-primary pull-right">12</span></a></li>
                                <li><a href="#"><i class="fa fa-file-text-o"></i> 草稿</a></li>
                                <li>
                                    <a href="#"><i class="fa fa-trash-o"></i> 废纸篓 <span class="label label-warning pull-right">65</span></a>
                                </li>
                            </ul>
                        </div>
                        <!-- /.box-body -->
                    </div>

                    <!-- /. box -->
                    <div class="box box-solid">
                        <div class="box-header with-border">
                            <h3 class="box-title">分类</h3>

                            <div class="box-tools">
                                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                                </button>
                            </div>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body no-padding">
                            <div id="category-tree" class="demo-tree-more category-tree"></div>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->

                </div>
                <!-- /.col -->
                <div class="col-md-9">
                    <div class="box-body">

                        <!--tab页-->
                        <div class="nav-tabs-custom">

                            <!--tab头-->
                            <ul class="nav nav-tabs">
                                <li class="active">
                                    <a href="/admin/article/edit" data-toggle="tab">文章修改</a>
                                </li>
                            </ul>
                            <!--tab头/-->

                            <!--tab内容-->
                            <div class="tab-content">

                                <form class="form-horizontal" id="post-form">
                                    <!--表单内容-->
                                    <div class="tab-pane active" id="tab-form">
                                        <!-- 文章信息-->
                                        <div class="row data-type">

                                            <div class="col-xs-2 title"><label for="author">作者</label></div>
                                            <div class="col-xs-10 data">
                                                <div class="form-group">
                                                    <div class="col-md-12">
                                                        <input type="text" hidden="hidden" name="authorId" id="authorId">
                                                        <input type="text" class="form-control" placeholder="作者" name="author" id="author" readonly="readonly">
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-xs-2 title"><label for="tagNames">标签</label></div>
                                            <div class="col-xs-10 data">
                                                <select href="/v1/admin/tag/select" class="form-control select2" multiple="multiple" name="tagNames" data-placeholder="文章标签" id="tagNames">
                                                    <option value="java">java</option>
                                                    <option value="Python">Python</option>
                                                </select>
                                            </div>

                                            <div class="col-xs-2 title"><label for="category">分类</label></div>
                                            <div class="col-xs-10 data">
                                                <div class="form-group">
                                                    <div class="col-md-12">
                                                        <select class="form-control" name="category" id="category">
                                                            <option value="java">java</option>
                                                        </select>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                        <!-- 文章信息/ -->

                                        <!--文章-->
                                        <div class="panel panel-default">
                                            <div class="panel-heading">文章内容</div>

                                            <div id="article-update" hidden="hidden"></div>
                                            <!--<button type="button" class="btn bg-maroon btn-flat margin" id="btn-dayadd">添加文章</button>-->

                                            <div id="dayslist" class="panel-body">
                                                <div class="error-message"></div>

                                                <div class="box box-success">
                                                    <div class="box-header with-border">
                                                        <h3 class="box-title">文章</h3>

                                                        <div class="box-tools pull-right">
                                                            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
<!--                                                            <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>-->
                                                        </div>
                                                    </div>
                                                    <div class="box-body">
                                                        <input type="text" class="form-control" placeholder="文章标题" name="title" id="article-title"><br>

                                                        <!-- markdown编辑器 -->
                                                        <textarea name="text" data-provide="markdown" data-iconlibrary="fa" rows="10" id="post"></textarea>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                        <!--文章/-->

                                        <!--工具栏-->
                                        <div class="box-tools text-center">
                                            <button type="button" class="btn bg-maroon" id="publish"><i class="fa fa-save"> 发表</i></button>
                                            <button class="btn bg-light-blue" type="button"><i class="fa fa-file"> 草稿</i></button>
                                            <button type="button" class="btn bg-default" onclick="history.back(-1);"><i class="fa fa-mail-reply"> 返回</i></button>
                                        </div>
                                        <!--工具栏/-->
                                    </div>
                                    <!--表单内容/-->
                                </form>
                            </div>
                            <!--tab内容/-->
                        </div>
                        <!--tab页/-->
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>

        </section>
        <!-- 正文区域 /-->

    </div>
    <!-- 内容区域 /-->
</div>
</html>